package com.example.springbootmybatis.service.impl;

import com.example.springbootmybatis.common.PageResult;
import com.example.springbootmybatis.entity.UserTab;
import com.example.springbootmybatis.mapper.UserMapper;
import com.example.springbootmybatis.param.UserParam;
import com.example.springbootmybatis.service.IUserService;
import com.example.springbootmybatis.vo.UserDetail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service("user2") //标记为服务处理，让spring将其加载到beanfactory中，以提供依赖注入
@Transactional //事务支持
public class User02ServiceImpl implements IUserService {

    @Override
    public UserTab getUserByid(Integer id) {
        return null;
    }

    @Override
    public List<UserTab> selectAllUser() {
        return null;
    }

    @Override
    public UserTab addUser(UserTab user) {
        return null;
    }

    @Override
    public UserTab updateUser(UserTab user) {
        return null;
    }

    @Override
    public void del(Integer id) {

    }

    @Override
    public PageResult getUserByPage(Integer pageNum, Integer pageSize, String userName) {
        return null;
    }

    @Override
    public PageResult getUserDetailByPage(UserParam userParam) {
        return null;
    }

    @Override
    public UserTab login(UserTab user) {
        return null;
    }
}
